<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/Public/foundation/foundation.min.css">
    <link rel="stylesheet" href="/Public/foundation/jquery.datetimepicker.css">
    <script src="/Public/jquery/jquery.min.js"></script>
    <script src="/Public/foundation/foundation.min.js"></script>
    <script src="/Public/foundation/modernizr.js"></script>
    <script src="/Public/jquery/plugin/cityselect/jquery.cityselect.js"></script>

    <!--<script src="/Public/jquery/plugin"></script>-->
    <link rel="stylesheet" href="http://static.runoob.com/assets/foundation-icons/foundation-icons.css">
</head>
<body>
<nav class="top-bar" data-topbar>
    <ul class="title-area">
        <li class="name">
            <h1><a href="#">后台管理</a></h1>
        </li>
    </ul>
    <section class="top-bar-section">
        <ul class="right">
                <li><a href="">欢迎<?php echo (session('name')); ?></a></li>
                <li><a href="<?php echo U('./Sys/Login/doLogout');?>">退出</a></li>
        </ul>

    </section>
</nav>
<div>
    <div class="small-2 columns">
        <?php if(is_array($locks)): $i = 0; $__LIST__ = $locks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><ul class="side-nav">
                <li><a href="http://127.0.0.1/index.php/<?php echo ($menu["url"]); ?>" target="<?php echo ($menu['target']==0?'_self':'_blank'); ?>"><?php echo ($menu["mname"]); ?></a></li>
            </ul><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <div class="small-10 columns">
        
<form action="<?php echo U('doAddMenu');?>" method="post">
    <table >
        <thead>
        <tr>
            <th>菜单名称</th>
            <th>菜单路径</th>
            <!--<th>上级菜单</th>
           th>分组</th>
           <th>排序</th>
           <th>打开方式</th>
           <th>锁定</th>-->
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
            <tr>
                <td><input name="mname" type="text"></td>
                <td><input name="url" type="text" ></td>
               <!--<td>
                    <select name="up" >
                        <option value="0">顶级菜单</option>
                        <?php if(is_array($navs)): foreach($navs as $key=>$v): ?><option value="<?php echo ($v["up"]); ?>"><?php echo ($v["mname"]); ?></option><?php endforeach; endif; ?>
                    </select>
                </td>-->
                <!-- <td><input name="mgroup"  style="width:4em;" type="text" "></td>
                <td><input name="msort" style="width:4em;" type="text" ></td>
               <td>
                    <div class="switch tiny">
                        <input  value="<?php echo ($v["menu_id"]); ?>" id="target_<?php echo ($v["menu_id"]); ?>" type="checkbox"  <?php echo ($v['target']?'checked':''); ?>>
                        <label for="target_<?php echo ($v["menu_id"]); ?>"></label>
                    </div>
                </td>

                <td>
                    <div class="switch tiny">
                        <input  value="<?php echo ($v["menu_id"]); ?>" id="lock_<?php echo ($v["menu_id"]); ?>" type="checkbox"  <?php echo ($v['lock']?'checked':''); ?>>
                        <label for="lock_<?php echo ($v["menu_id"]); ?>"></label>
                    </div>
                </td>-->
                <td>
                    <button  class="button tiny save">保存</button>
                </td>
            </tr>
        </tbody>
    </table>

</form>

    </div>
</div>
</body>
</html>